<%@ page language="java"%>
<%@ page import="com.ffpc.struts.StrutsMessage"%>
<%@ page import="java.sql.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.*"%>
<%@ page import="java.net.URLEncoder"%>
<%@ page import="java.net.URLDecoder"%>

<%@ page import="admin.*"%>
<% //@ page import="com.hthk.ffpc.sql.JNDIProvider"%>

<%

 Connection con = null;

 
   
   String contextPath = request.getContextPath();
   
   ConnectionFactory connectionFactory = null;
   User user;
   StrutsMessage message;
   
   String formAction;
   String readOnly ;
   {
    message = (StrutsMessage)request.getAttribute("message");
    if (message==null)
       message = new StrutsMessage();
    
    
    formAction = request.getParameter("formAction");
    readOnly = new String("");
    if (formAction!=null && formAction.trim().equalsIgnoreCase("Update"))
       readOnly = new String(" readonly ");
    
    user = (User)session.getAttribute("user");
     
   // 12-Nov-2012 
   /*
    if (user == null) {
    user = (User) this.getServletConfig().getServletContext().getAttribute("user");
    }
   */ 
   
   // 12-Nov-2012 
   if (user == null) {
      response.sendRedirect("../tssLogout.jsp");
      return;
    }
       }
    String sid = "prod";
    
    Statement statement = null;
	ResultSet rs = null;
    String LogMsgHeader = "";
    try {
	    if (con == null){
	    //  connectionFactory = new ConnectionFactory("fasp_tss");
	 	//  con = (Connection)connectionFactory.getConnection();
		//	statement = con.createStatement();
		}

		
%>



